		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <h1 class="page-header">我的脚本</h1>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>脚本名称</th>
                  <th>项目类型</th>
                  <th>脚本版本</th>
                  <th>创建时间</th>
                  <th>脚本操作</th>
                </tr>
              </thead>
              <tbody>
              <#if scriptList??>
              		<#list scriptList as sList>
		              	<tr id="modifyProject_${pList.project_id}">
		                  <td>${sList.scriptName}</td>
		                  <td>${sList.projectType}</td>
		                  <td>${sList.scriptVersion}</td>
		                  <#if sList.updateTime??>
		                  		<td>${sList.updateTime}</td>
		                  	<#else>
		                  		<td>${sList.createTime}</td>
		                  </#if>
		                  
		                  <input type="hidden" value="" id="projectId"/>
		                  <td>
		                  <div>
							<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#delModal" onclick="project.index.downLoadScript('${sList.scriptUrl}');">
							 	下载
							</button>
							<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#delModal" onclick="project.index.delScript('${sList.scriptId}');">
							 	删除
							</button>
		    			  </div>
		    			</td>
		                </tr>
              		</#list>
              </#if>
              </tbody>
            </table>
          </div>
        </div>
	<div class="pull-right pagination">
    	<ul class="pagination" style="" id='bp-3-element-script'></ul>
	</div>
<script type="text/javascript">
	project.index.productParams.totalPages = ${totalPages};
	if(project.index.productParams.totalPages>0){
		var options = {
	            size:"large",
	            bootstrapMajorVersion:3,
	            currentPage: project.index.productParams.currentPage,
	            numberOfPages: project.index.productParams.numberOfPages,
	            totalPages:project.index.productParams.totalPages
	        };
	    var element = $('#bp-3-element-script');
	    element.bootstrapPaginator(options);
	}
</script>